package com.qst.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.qst.pojo.User;
import com.qst.pojo.UserExample;

@Repository public interface UserMapper {
	 //crud
	 boolean insert(User user);
	 User selectByUser(User user);
	 User getUser(Integer id);
	 void updateUser(User user);


	 //~~~旧版~~~
	 int countByExample(UserExample example);

	 int deleteByExample(UserExample example);

	 int deleteByPrimaryKey(Integer id);


	 int insertSelective(User record);

	 List<User> selectByExample(UserExample example);

	 User selectByPrimaryKeyaryKey(Integer id);



	 User selectByUserName(String usernane);

	 int updateByExampleSelective(@Param("record") User record,
			 @Param("example") UserExample example);

	 int updateByExample(@Param("record") User record, @Param("example") UserExample example);

	 int updateByPrimaryKeySelective(User record);

	 int updateByPrimaryKey(User record);
}